import request from '@/utils/request'

// 查询竞店一级来源数据日报列表
export function listBiCompeteShopFirstSource(query) {
  return request({
    url: '/marketing/BiCompeteShopFirstSource/list',
    method: 'get',
    params: query
  })
}

// 查询竞店一级来源数据日报详细
export function getBiCompeteShopFirstSource(id) {
  return request({
    url: '/marketing/BiCompeteShopFirstSource/' + id,
    method: 'get'
  })
}

// 新增竞店一级来源数据日报
export function addBiCompeteShopFirstSource(data) {
  return request({
    url: '/marketing/BiCompeteShopFirstSource',
    method: 'post',
    data: data
  })
}

// 修改竞店一级来源数据日报
export function updateBiCompeteShopFirstSource(data) {
  return request({
    url: '/marketing/BiCompeteShopFirstSource',
    method: 'put',
    data: data
  })
}

// 删除竞店一级来源数据日报
export function delBiCompeteShopFirstSource(id) {
  return request({
    url: '/marketing/BiCompeteShopFirstSource/' + id,
    method: 'delete'
  })
}
